package com.hrt.bean;

/***********************************************************************
 * Module:  MailRecord.java
 * Author:  Administrator
 * Purpose: Defines the Class SmsRecord
 ***********************************************************************/

import java.io.Serializable;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/** 邮件发送记录表
 * 
 * */
@Entity
@Table(name = "MAIL_RECORD")
public class MailRecord implements Serializable  {
	private static final long serialVersionUID = 1L;
/** 主键
    * 
    *
    */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "MAIL_ID")
   private Long mailId;
   /** 发送时间
    * 
    * 
 */
	@Column(name = "SEND_TIME")
   private Timestamp sendTime;
   /** 发送状态
    *  0未发送 1已发送 -1发送失败
    * 
    */
	@Column(name = "STATUS")
   private Integer status;
   /** 接收邮件
    * 
     */
	@Column(name = "MAIL")
   private String mail;
   /** 邮件内容
    * 
    */
	@Column(name = "CONTENT")
   private String content;
   /** 验证码
    * 
     */
	@Column(name = "VALID_CODE")
   private String vaildCode;
   /** 会员ID
    * 
    */
	@Column(name = "MEMBER_ID")
   private Long memberId;
   /** 删除标记
    * 
    */
	@Column(name = "IS_DELETE")
   private Integer isdelete = 0;
   /** 相关业务
    * 0---》用户注册
    * 1---》找回密码
    * 2---》下单成功通知
    * 3---》发货通知
    */
	@Column(name = "BUS_TYPE")
   private String busType;
	/**
	 * 判断手机验证码是否可用的标志
	 * 0表示可用
	 * 1表示失效
	 */
	@Column(name = "IS_INVALID")
	private Integer isinvalid = 0;
	public Long getMailId() {
		return mailId;
	}
	public void setMailId(Long mailId) {
		this.mailId = mailId;
	}
	public Timestamp getSendTime() {
		return sendTime;
	}
	public void setSendTime(Timestamp sendTime) {
		this.sendTime = sendTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getVaildCode() {
		return vaildCode;
	}
	public void setVaildCode(String vaildCode) {
		this.vaildCode = vaildCode;
	}
	public Long getMemberId() {
		return memberId;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}
	public Integer getIsdelete() {
		return isdelete;
	}
	public void setIsdelete(Integer isdelete) {
		this.isdelete = isdelete;
	}
	public String getBusType() {
		return busType;
	}
	public void setBusType(String busType) {
		this.busType = busType;
	}
	public Integer getIsinvalid() {
		return isinvalid;
	}
	public void setIsinvalid(Integer isinvalid) {
		this.isinvalid = isinvalid;
	}
   
   
  

}
